package com.qj.yantaishan.service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qj.yantaishan.domain.Attachment;

/**
 * 附件Service接口
 * 
 * @author qihe
 * @date 2022-07-22
 */
public interface IAttachmentService   extends IService<Attachment>
{
    /**
     * 查询附件
     * 
     * @param pigcmsId 附件主键
     * @return 附件
     */
    public Attachment selectAttachmentByPigcmsId(Long pigcmsId);

    /**
     * 查询附件列表
     * 
     * @param attachment 附件
     * @return 附件集合
     */
    public List<Attachment> selectAttachmentList(Attachment attachment);

    /**
     * 新增附件
     * 
     * @param attachment 附件
     * @return 结果
     */
    public int insertAttachment(Attachment attachment);

    /**
     * 修改附件
     * 
     * @param attachment 附件
     * @return 结果
     */
    public int updateAttachment(Attachment attachment);

    /**
     * 批量删除附件
     * 
     * @param pigcmsIds 需要删除的附件主键集合
     * @return 结果
     */
    public int deleteAttachmentByPigcmsIds(String pigcmsIds);

    /**
     * 删除附件信息
     * 
     * @param pigcmsId 附件主键
     * @return 结果
     */
    public int deleteAttachmentByPigcmsId(Long pigcmsId);
}
